<?php
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
function getCategory($catId)
{
    $records = dbFetchOne('Select name,id from categories where id= '.$catId);
    return $records;
}

function getCategories()
{
    return dbFetchAll('select * from categories where active=1 ');
}
?>
